import axios from '@/api/fetch';
//import * as types from './types';
import SERVER from '@/api/server';

//旧件回运仓库维护-按车型-主机厂

//旧件回运仓库维护-按车型-主页面查询
export const getListByPage = params => axios.post(`${SERVER.CLAIMFAC}/rpReturnRelational/getListByPage`, params);
//新增的保存
export const newSave = params => axios.post(`${SERVER.CLAIMFAC}/rpReturnRelational/saveOne`, params);
//通过ID查
export const selectById = params => axios.get(`${SERVER.CLAIMFAC}/rpReturnRelational/selectById/${params.id}`);
//启动
export const enableDisableById = params => axios.get(`${SERVER.CLAIMFAC}/rpReturnRelational/enableDisableById/${params.id}`);
//保存
export const editSave = params => axios.post(`${SERVER.CLAIMFAC}/rpReturnRelational/updateByPtId`, params);
//删除
export const delet = params => axios.get(`${SERVER.CLAIMFAC}/rpReturnRelational/updateStatusById/${params.id}`);
